<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
      <title>title</title>
      <link rel="stylesheet" type="text/css" href="../css/api.css"/>
      <link rel="stylesheet" type="text/css" href="../css/animate.css"/>
            <link rel="stylesheet" type="text/css" href="../css/scrollmenu.css"/>
      <style>
          body{
background-color: #ededed
          }
          #wrap{padding: 15px}
          .fk{ background-color: #fff; height: 460px; margin-top: 50px;border-radius:6px; padding: 15px}
.tximg img{ height: 55px; width: 55px; border-radius:8px;}
 .fl{float: left;}
.wxm{font-size: 16px; line-height: 20px; padding-top: 8px}
.grxx{margin-left: 7px;}
.grxx img{ height: 18px; padding-left: 8px;}
.dz{color: #999999;font-size: 12px}
.mpewm{text-align: center; }
.mpewm img{width: 100%;height: 310px}
.xx{height: 80px;}
.dbwz{font-size: 12px;color: #999999; text-align: center; margin-top: 10px}
      </style>
  </head>
  <body>
 <div id="wrap">

<div class="fk">
<div class="xx">
<div class="tximg fl"><img id="tx" src="../image/tx.png"> </div>
<div class=" grxx fl"><span class="wxm" id="wxm"> </span><img id='sex' src="../image/nan.png"><br>
<span class="dz" id="dz"> </span>
 </div>
</div>


<div class="mpewm"><img id="ewm" src="../image/mpewm.png"> </div>

<div class="dbwz">扫一扫上面的二维码图案，加我微信</div>
</div>


 </div>
  </body>
  <script type="text/javascript" src="../script/api.js"></script>
  <script  type="text/javascript"  src="../script/jquery-2.1.1.min.js"></script>
   <script  type="text/javascript"  src="../script/jquery.md5.js"></script>
  <script type="text/javascript" src="../script/common.js"></script>

      <script type="text/javascript" src="../script/jquery.mobile-1.4.5.min.js"></script>
            <script type="text/javascript" src="../script/bscroll.js"></script>
                      <script type="text/javascript" src="../script/scrollmenu2.js"></script>
  <script type="text/javascript">

var i=0;

  function gh(){
    i++;
    if(i>2){
      i=0;
    }

    var jsfun = 'show();';
    api.execScript({
        script: jsfun
    });
    $("body").scrollmenu({
      type:'cross',
      hasLineBorder:false,
      // bscroll:true,
      // animateIn:'bounceIn',
      // animateOut:'bounceOut',

      click:function(ret){


     if( ret.index==0 ){
       var jsfun = 'hide();';
      api.execScript({
          script: jsfun
      });

                                       api.showProgress({
                                            title: ' ',
                                           text: '正在生成二维码...',
                                           modal: false
                                       });





                                       setTimeout(function(){
                                         $api.attr($api.byId('ewm'),'src', localStorage.getItem('ewm'+i)  );
                                           api.hideProgress();


                                     },1000);



     }

      }
    });


  }

      apiready = function(){

                var winHeight = api.winHeight;
                       h=winHeight-50-api.safeArea.top-30
                       $api.css($api.byId('wrap'),'min-height:'+h+'px;');

                         $api.attr($api.byId('tx'),'src', localStorage.getItem('tx')  );
                             $api.html($api.byId('wxm'),  localStorage.getItem('wxm')  );
                                $api.html($api.byId('dz'),  localStorage.getItem('dz')  );

                                if(localStorage.getItem('sex')=='女'){
                                   $api.attr($api.byId('sex'),'src','../image/nv.png' );
                                }else{
                                  $api.attr($api.byId('sex'),'src','../image/nan.png' );
                                }



                                api.showProgress({
                                     title: ' ',
                                    text: '正在生成二维码...',
                                    modal: false
                                });

                                setTimeout(function(){
                              $api.attr($api.byId('ewm'),'src', localStorage.getItem('ewm0')  );
                               api.hideProgress();
                              },2000);

      };
  </script>
  </html>
